<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 <head>
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
 <title>Analytics - Kammerath Network</title>
 <link rel="stylesheet" href="/themes/analytics/css/analytics.css" />
 </head>
 <body>
 	<div class="knAnalyticsMain">
 		<table class="knAnalyticsTable" cellspacing="0" cellpadding="0">
  			<tr class="knQuarterHeader">
  				<td>Analytics</td>
 				<td>Q1</td>
 				<td></td>
 				<td></td>
 				<td>Q2</td>
 				<td></td>
 				<td></td>
 				<td>Q3</td>
 				<td></td>
 				<td></td>
 				<td>Q4</td>
 				<td></td>
 				<td></td>
 				<td>2011</td>
 			</tr>
 			<tr class="knMonthHeader">
 				<td>Cost, Revenue & KPIs</td>
 				<td>Jan</td>
 				<td>Feb</td>
 				<td>Mar</td>
 				<td>Apr</td>
 				<td>May</td>
 				<td>Jun</td>
 				<td>Jul</td>
 				<td>Aug</td>
 				<td>Sep</td>
 				<td>Oct</td>
 				<td>Nov</td>
 				<td>Dec</td>
 				<td>Total</td>
 			</tr>
 			
 			<!-- EBIT Earnings before Interests and Taxes -->
 			<tr class="knHeaderRow">
 				<td class="knHeaderRowTitle">Earnings</td>
 				{assign var=ecostTotal value=0}
 				{assign var=erevenueTotal value=0}
 				{section name=x start=0 loop=12 step=1}
 					<td class="knHeaderRowData">
 					{assign var=etCost value=$report->costList->adwords->cost[x]|floatval+$report->costList->godaddy->cost[x]|floatval}
 					{assign var=etRev value=$report->revenueList->amazon->revenue[x]|floatval+$report->revenueList->adsense->revenue[x]|floatval+$report->revenueList->ebay->revenue[x]|floatval}
 					{assign var=tEarn value=$etRev|floatval-$etCost|floatval}
 					{if $tEarn < 0}
 						<div class="knNegativeValue">{$tEarn} €</div>
 					{else}
 						<div class="knPositiveValue">{$tEarn} €</div>
 					{/if}
 					{assign var=ecostTotal value=$ecostTotal|floatval+$etCost|floatval}
 					{assign var=erevenueTotal value=$erevenueTotal|floatval+$etRev|floatval}
 					</td>
 				{/section}
 				<td class="knDataRowValue">
 					{assign var=totalEarn value=$erevenueTotal|floatval-$ecostTotal|floatval}
 					{if $totalEarn < 0}
 						<div class="knNegativeValue">{$totalEarn} €</div>
 					{else}
 						<div class="knPositiveValue">{$totalEarn} €</div>
 					{/if}
				</td>
 			</tr>
 			
 			<!-- Revenue & Earnings Part -->
 			<tr class="knHeaderRow">
 				<td class="knHeaderRowTitle">Revenue</td>
 				{assign var=revenueTotal value=0}
 				{section name=totalRev start=0 loop=12 step=1}
 					<td class="knHeaderRowData">
 					{assign var=tRev value=$report->revenueList->amazon->revenue[totalRev]|floatval+$report->revenueList->adsense->revenue[totalRev]|floatval+$report->revenueList->ebay->revenue[totalRev]|floatval}
 					{if $tRev == 0}
 						<div class="knZeroValue">--</div>
 					{else}
 						{$tRev} €
 					{/if}
 					{assign var=revenueTotal value=$revenueTotal|floatval+$tRev|floatval}
 					</td>
 				{/section}
 				<td class="knDataRowValue">{$revenueTotal|floatval} €</td>
 			</tr>
 			<tr class="knDataRow">
 				<td class="knDataRowName">Amazon PartnerNet</td>
 				{assign var=amznTotal value=0}
 				{section name=amzn start=0 loop=$report->revenueList->amazon->revenue|count step=1}
 					{assign var=amznTotal value=$amznTotal|floatval+$report->revenueList->amazon->revenue[amzn]|floatval}
 					<td class="knDataRowValue">
 					{if $report->revenueList->amazon->revenue[amzn]|floatval == 0}
 						<div class="knZeroValue">--</div>
 					{else}
 						{$report->revenueList->amazon->revenue[amzn]|floatval} €
 					{/if}
 					</td>
 				{/section}
 				<td class="knDataRowValue">{$amznTotal|floatval} €</td>
 			</tr>
 			<tr class="knDataRow">
 				<td class="knDataRowName">Google AdSense</td>
 				{assign var=adsenseTotal value=0}
 				{section name=adsns start=0 loop=$report->revenueList->adsense->revenue|count step=1}
 					{assign var=adsenseTotal value=$adsenseTotal|floatval+$report->revenueList->adsense->revenue[adsns]|floatval}
 					<td class="knDataRowValue">
 					{if $report->revenueList->adsense->revenue[adsns]|floatval == 0}
 						<div class="knZeroValue">--</div>
 					{else}
 						{$report->revenueList->adsense->revenue[adsns]|floatval} €
 					{/if}
 					</td>
 				{/section}
 				<td class="knDataRowValue">{$adsenseTotal|floatval} €</td>
 			</tr>
 			<tr class="knDataRow">
 				<td class="knDataRowName">eBay Partner Network</td>
 				{assign var=ebayTotal value=0}
 				{section name=eby start=0 loop=$report->revenueList->ebay->revenue|count step=1}
 					{assign var=ebayTotal value=$ebayTotal|floatval+$report->revenueList->ebay->revenue[eby]|floatval}
 					<td class="knDataRowValue">
 					{if $report->revenueList->ebay->revenue[eby]|floatval == 0}
 						<div class="knZeroValue">--</div>
 					{else}
 						{$report->revenueList->ebay->revenue[eby]|floatval} €
 					{/if}
 					</td>
 				{/section}
 				<td class="knDataRowValue">{$ebayTotal|floatval} €</td>
 			</tr>
 			
 			<!-- Cost & Expenses Part -->
 			<tr class="knHeaderRow">
 				<td class="knHeaderRowTitle">Cost</td>
 				{assign var=costTotal value=0}
 				{section name=totalCost start=0 loop=12 step=1}
 					<td class="knHeaderRowData">
 					{assign var=tCost value=$report->costList->adwords->cost[totalCost]|floatval+$report->costList->godaddy->cost[totalCost]|floatval}
 					{if $tCost == 0}
 						<div class="knZeroValue">--</div>
 					{else}
 						{$tCost} €
 					{/if}
 					{assign var=costTotal value=$costTotal|floatval+$tCost|floatval}
 					</td>
 				{/section}
 				<td class="knDataRowValue">{$costTotal|floatval} €</td>
 			</tr>
 			<tr class="knDataRow">
 				<td class="knDataRowName">Google AdWords <small>Marketing</small></td>
 				{assign var=adwordsTotal value=0}
 				{section name=adws start=0 loop=$report->costList->adwords->cost|count step=1}
 					{assign var=adwordsTotal value=$adwordsTotal|floatval+$report->costList->adwords->cost[adws]|floatval}
 					<td class="knDataRowValue">
 					{if $report->costList->adwords->cost[adws]|floatval == 0}
 						<div class="knZeroValue">--</div>
 					{else}
 						{$report->costList->adwords->cost[adws]|floatval} €
 					{/if}
 					</td>
 				{/section}
 				<td class="knDataRowValue">{$adwordsTotal|floatval} €</td>
 			</tr>
 			<tr class="knDataRow">
 				<td class="knDataRowName">GoDaddy Hosting <small>Operations</small></td>
 				{assign var=godaddyTotal value=0}
 				{section name=gdy start=0 loop=$report->costList->godaddy->cost|count step=1}
 					{assign var=godaddyTotal value=$godaddyTotal|floatval+$report->costList->godaddy->cost[gdy]|floatval}
 					<td class="knDataRowValue">
 					{if $report->costList->godaddy->cost[gdy]|floatval == 0}
 						<div class="knZeroValue">--</div>
 					{else}
 						{$report->costList->godaddy->cost[gdy]|floatval} €
 					{/if}
 					</td>
 				{/section}
 				<td class="knDataRowValue">{$godaddyTotal|floatval} €</td>
 			</tr>
 		</table>
 	</div>
 </body>
 </html>